#ifndef COLLECTIONSINIT_H_
#define COLLECTIONSINIT_H_

#include <vector>

#include "graph_support/GraphSupport.h"

namespace GRAPH_SUPPORT_NS
{
namespace utils
{

template < typename E, typename ArT >
std::vector< E > arr2vector( const ArT & arr )
{
	size_t sz = sizeof( arr ) / sizeof( E );
	std::vector< E > result( sz );
	const E * arrBeg = arr;
	std::copy( arrBeg, arrBeg + sz, result.begin() );
	return result;
}

}
}

#endif /* COLLECTIONSINIT_H_ */
